﻿import request from '/@/utils/request';
enum Api {
  AddHKCrossRecord = '/api/hKCrossRecord/add',
  DeleteHKCrossRecord = '/api/hKCrossRecord/delete',
  UpdateHKCrossRecord = '/api/hKCrossRecord/update',
  SaveHKCrossRecord = '/api/hKCrossRecord/save',
  PageHKCrossRecord = '/api/hKCrossRecord/page',
  ExportHKCrossRecord = 'api/hKCrossRecord/export',
  ImportUrl= 'api/hKCrossRecord/import',
  downLoadTemplate = 'api/hKCrossRecord/TemplateDown',
}

//导出汽車出入門禁記錄
export const exportHKCrossRecordExcel=(params?:any)=>
	request({
		url:Api.ExportHKCrossRecord,
		method:'post',
		data:params,
		responseType: 'blob'
	});

// 增加汽車出入門禁記錄
export const addHKCrossRecord = (params?: any) =>
	request({
		url: Api.AddHKCrossRecord,
		method: 'post',
		data: params,
	});

// 删除汽車出入門禁記錄
export const deleteHKCrossRecord = (params?: any) => 
	request({
			url: Api.DeleteHKCrossRecord,
			method: 'post',
			data: params,
		});

// 编辑汽車出入門禁記錄
export const updateHKCrossRecord = (params?: any) => 
	request({
			url: Api.UpdateHKCrossRecord,
			method: 'post',
			data: params,
		});

// 保存汽車出入門禁記錄
export const saveHKCrossRecord = (params?: any) => 
	request({
			url: Api.SaveHKCrossRecord,
			method: 'post',
			data: params,
		});

// 分页查询汽車出入門禁記錄
export const pageHKCrossRecord = (params?: any) => 
	request({
			url: Api.PageHKCrossRecord,
			method: 'post',
			data: params,
		});

export const importUrl = () => {return Api.ImportUrl;};
export const downLoadTemplate = ()=>{return Api.downLoadTemplate ;};



